#define _CRT_SECURE_NO_WARNINGS 1
#include"dun.h"
void Text()
{
	int a[] = { 10,20,40,30,50,60,45 };
	sl q;
	dunInit(&q);
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		dunpush(&q, a[i]);
	}
	heapprintf(&q);
	
}
void teattop()
{
	int n = 10000;
	int* p = (int*)malloc(sizeof(int) * n);
	for (int i = 0; i < n; i++)
	{
		p[i] = rand() % 1000000;
	}
	p[5] = 1000000 + 1;
	p[199] = 1000000 + 2;
	p[789] = 1000000 + 30;
	p[234] = 1000000 + 67;
	p[243] = 1000000 + 86;
	p[299] = 1000000 + 23;
	p[809] = 1000000 + 32;
	p[200] = 1000000 + 6;
	p[300] = 1000000 + 3;
	p[400] = 1000000 + 61;
	p[500] = 1000000 + 8;
	printtop(p, n, 10);
}

int main()
{
	Text();
	printf("\n");
	teattop();
	return 0;
}


